import java.util.*;

public class TestStackOfInts {
    public static void main(String[] args) {
        StackOfInts stack = new StackOfInts();
        
        for (int i = 0; i < 100; i++) {
            stack.push((int)(Math.random() * 99));
        }
        
        while(!stack.empty())
            System.out.print(stack.pop() + " ");
        
        System.out.println();
    }
}